package com.kedou.sdk.ui.assist;


import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.kedou.sdk.ui.fragment.PhoneLoginFragment;

public class LoginTypeSwitchOnlyPhoneAdapter extends FragmentPagerAdapter {

    private static final short DEFAULT_MAX_PAGER_COUNT = 1;

    private static final Fragment[] fragments = new Fragment[DEFAULT_MAX_PAGER_COUNT];

    public LoginTypeSwitchOnlyPhoneAdapter(FragmentManager fragment) {
        super(fragment);
        fragments[0] = new PhoneLoginFragment();
    }

    @Override
    public Fragment getItem(int position) {
        return fragments[position];
    }

    @Override
    public int getCount() {
        return fragments.length;
    }

}
